package com.deer.wms.system.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.deer.wms.system.manage.model.ware.AreaUser;
import com.deer.wms.system.manage.service.AreaUserService;
import com.deer.wms.system.manage.dao.AreaUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
* @author luowe
* @description 针对表【area_user(用户仓库表)】的数据库操作Service实现
* @createDate 2022-06-08 18:19:31
*/
@Service
public class AreaUserServiceImpl extends ServiceImpl<AreaUserMapper, AreaUser>
    implements AreaUserService{

    @Autowired
    private AreaUserMapper areaUserMapper;

    @Override
    public void deleteAreaByUserId(Integer userId) {
        Map<String, Object> map = new HashMap<>();
        map.put("user_id", userId);
        areaUserMapper.deleteByMap(map);
    }
}




